package chaoyue.study.listener;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class MyConsumer1 {
    /**
     * 接收testQueue消息
     */
    @RabbitListener(queues = "queue1")
    public void receiveMessage(String message) {
        System.out.println("queue1 接收到消息：" + message);
    }
}
